package com.yheriatovych.reductor.example.reductor.filter;

import com.yheriatovych.reductor.Action;
import com.yheriatovych.reductor.annotations.ActionCreator;
import com.yheriatovych.reductor.example.model.NotesFilter;

/**
 * filter action
 *
 * @since 2021-05-06
 */
@ActionCreator
public interface FilterActions {
    /**
     * 设置过滤标识
     */
    String SET_FILTER = "SET_FILTER";

    /**
     * 过滤标识
     *
     * @param filter
     * @return Action
     */
    @ActionCreator.Action(SET_FILTER)
    Action setFilter(NotesFilter filter);
}
